package com.gxa.community.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;

/**
 *
 * @author juran
 * @since 2022-07-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("operate_kill_spell")
@ApiModel(value = "OperateKillSpell对象", description = "秒杀信息表")
public class OperateKillSpell implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增id")
      @TableId(value = "id", type = IdType.AUTO)
    @Null
    private Integer id;

    @ApiModelProperty("活动名称")
    private String name;

    @ApiModelProperty("开始时间")
    private Long startTime;

    @ApiModelProperty("结束时间")
    private Long endTime;

    @ApiModelProperty("秒杀状态/0上线/1下线")
    private Integer status;

    @ApiModelProperty("秒杀时间")
    private Long time;

    @ApiModelProperty("1-秒杀/2-拼团")
    private Integer type;

    @ApiModelProperty("秒杀编号")
    @NotBlank
    private String killId;

}
